﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

//https://go.microsoft.com/fwlink/?LinkId=234236 上介绍了“用户控件”项模板

namespace TongYI_Lingma_UWP_.Control
{
    public sealed partial class ChatList : UserControl
    {
        public ChatList()
        {
            this.InitializeComponent();
        }

        public string Title
        {
            get { return (string)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }

        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(
            "Title",
            typeof(string),
            typeof(ChatList),
            new PropertyMetadata(string.Empty)
        );

        public string Massage
        {
            get { return (string)GetValue(MassageProperty); }
            set { SetValue(MassageProperty, value); }
        }

        public static readonly DependencyProperty MassageProperty = DependencyProperty.Register(
            "Massage",
            typeof(string),
            typeof(ChatList),
            new PropertyMetadata(string.Empty)
        );
    }
}
